package p1;

public class Discount extends CondimentDecorator {

    Beverage beverage;

    public Discount(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + " WITH 10% DISCOUNT";
    }

    @Override
    public double cost() {
        return beverage.cost() - beverage.cost() * .1;
    }
}
